package com.atguigu.yygh.hosp.common.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @version 1.0
 * @Author: 许啸林
 * @Date: 2021/6/30 15:08
 */
@Configuration
public class MpConfig {
    /**
     * 分页设置
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
